package juan.happyge.plugin.myi.helper;


import com.intellij.notification.NotificationGroupManager;
import com.intellij.notification.NotificationType;
import com.intellij.openapi.project.Project;
import org.jetbrains.annotations.Nullable;

public class MyNotifier {

    public static void notifyInfo(@Nullable Project project,
                                  String title, String content) {
        NotificationGroupManager.getInstance().getNotificationGroup("Moyu Notification Group")
                .createNotification(title,content, NotificationType.INFORMATION).notify(project);
    }

    public static void notifyError(@Nullable Project project,
                                   String content) {
        NotificationGroupManager.getInstance().getNotificationGroup("Moyu Notification Group")
                .createNotification(content, NotificationType.ERROR).notify(project);
    }

}